package test;

public class BlockQueue {
    public static class Node <E>{
        public int num;
        public Node<E> node;
        //初始化
        //同时还需要有两个指针指向头节点和尾节点
        public Node(int num, Node<E> node) {
            this.num = num;
            this.node = node;
        }
        public Node<E> test(Node<E> node, int num) {
            return new Node<>(node.num,node);
        }
    }
}
